package cn.kailangtu.dataspot.activify;

import android.util.Log;
import android.widget.TextView;

import androidx.fragment.app.Fragment;

import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;

import java.util.List;

import cn.kailangtu.commonevents.data.DataBean;
import cn.kailangtu.commonevents.eventEntity.ControlsClickEvent;
import cn.kailangtu.commonevents.eventEntity.ControlsClickSubEvent;
import cn.kailangtu.commonevents.eventEntity.KeyboardNumberCloseEvent;
import cn.kailangtu.commonevents.eventEntity.KeyboardNumberOpenEvent;
import cn.kailangtu.commonevents.eventEntity.KeyboardSelectionCloseEvent;
import cn.kailangtu.commonevents.eventEntity.KeyboardSelectionOpenEvent;
import cn.kailangtu.commonevents.eventEntity.LocalSettingChangedEvent;
import cn.kailangtu.commonevents.eventEntity.WriteDataToMachineEvent;
import cn.kailangtu.commontools.APPSPUtils;
import cn.kailangtu.commontools.CommonUtils;
import cn.kailangtu.commontools.KeyboardUtils;
import cn.kailangtu.commontools.Loggers;
import cn.kailangtu.dataspot.R;
import cn.kailangtu.dataspot.data.ControlTree;
import cn.kailangtu.dataspot.data.consts.ControlAction;
import cn.kailangtu.dataspot.data.consts.ControlEventValues;
import cn.kailangtu.dataspot.data.context.KeyboardSelectContext;
import cn.kailangtu.dataspot.data.context.KeyboardTargetContext;
import cn.kailangtu.serialutils.api.Com1;
import cn.kailangtu.serialutils.modbus.modbusUtil;

public abstract class KeyboardBaseFragment extends Fragment {
    String TAG = "KeyboardBaseFragment";


    @Override
    public void onStart() {
        super.onStart();

        EventBus.getDefault().register(this);

    }

    @Override
    public void onStop() {
        super.onStop();
        EventBus.getDefault().unregister(this);
    }
}
